<template>
  <el-calendar v-model="curDate">
    <template
      #dateCell="{date}"
    >
      {{ date.getDate() }}{{ isweeked(date) ? '休' : '' }}
      <template /></template></el-calendar>
</template>

<script>
export default {
  data() {
    return {
      curDate: new Date()
    }
  },
  methods: {

    isweeked(date) {
      return date.getDay() === 0 || date.getDay() === 6
    }
  }

}
</script>
